<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('wx_miniprogram_config', function (Blueprint $table) {
            $table->tinyInteger('is_limit')->comment('是否被限制')->unsigned()->default(0);
            $table->integer('limit_time')->comment('限制时间')->unsigned()->default(0);

            $table->index('is_limit');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
